
<%@page import="org.lxy.domain.UserInfoEntity"%>
<%@page import="org.lxy.service.GoodsTypeService"%>
<%@page import="org.lxy.domain.GoodsTypeEntity"%>
<%@page import="org.lxy.service.RecycleGoodsService"%>
<%@page import="org.lxy.domain.RecycleGoodsEntity"%>
<%@page import="org.lxy.service.InfomationService"%>
<%@page import="org.lxy.domain.InfomationEntity"%>
<%@page import="org.lxy.service.RecyclePointService"%>
<%@page import="org.lxy.domain.RecyclePointEntity"%>
<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8"%>
<%@ page import="org.lxy.utils.CoreUtils" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<title>闲置物品回收</title>
<meta name="keywords" content="HTML5,CSS3,HTML,Template,Themeton">
<meta name="description"
	content="Cloudy Town - Simple Blog HTML Template">
<meta name="author" content="Themeton">
<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.png" />
<!-- Fonts -->
<!-- Bootstrap -->
<link rel="stylesheet" type="text/css"
	href="/vendors/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css"
	href="/vendors/bootstrap/css/bootstrap-theme.min.css">
<!-- Fontawesome -->
<link rel="stylesheet" type="text/css"
	href="/vendors/font-awesome/css/font-awesome.min.css">
<!-- Swiper -->
<link rel="stylesheet" type="text/css"
	href="/vendors/swiper/css/swiper.min.css">
<!-- Magnific-popup -->
<link rel="stylesheet" type="text/css" href="/style.css">
<link rel="stylesheet" type="text/css" href="/css/welcome.css">
</head>
<body>
	<header id="header">
		<div class="logo" data-bg-image="images/bg-header.jpg">
			<h1>
				<a href="/Home.jsp">闲置物品回收</a>
			</h1>
			<p></p>
		</div>
		<div class="menu-container">
			<div class="container">
				<div class="row">
					<div class="col-md-7">
						<nav class="main-nav">
							<ul>
								<li class=" current-menu-item menu-item-has-children"><a
									href="/home">首页</a></li>
								<li><a href="/zixunlist">资讯</a></li>
								<li><a href="/huishouwulist">兑换物品</a></li>
								<li><a href="/shangmenhuishou">上门回收</a></li>
								<li><a href="/huishoudianhuishou">回收点回收</a></li>
								<li><a href="/wodejuanzengwu">我的捐赠物</a></li>
								<li><a href="/wodeduihuanwu">我的兑换物</a></li>
									</ul>
							<a href="javascript:;" id="close-menu"> <i
								class="fa fa-close"></i></a>
						</nav>
					</div>
					<div class=" col-md-5 h-search">
						<form class="search_form">
							<input type="text" name="2" placeholder="Search and hit enter...">
							<button type="submit">
								<i class="fa fa-search"></i>
							</button>
						</form>
						
					</div>
				</div>
			</div>
		</div>
	</header>
	<section class="section-content">
		<div class="container">
			<div class="row">
			<% 
UserInfoEntity userinfo =(UserInfoEntity) request.getSession().getAttribute("Account");
	                if(userinfo == null){
	                	response.sendRedirect("/login");
	                	return;
	                }
	                %>
			<%
						List<RecycleGoodsEntity> huishouwupinlist = CoreUtils.recycleGoodsService.listByMap(CoreUtils.toMap(RecycleGoodsEntity.builder().userId(userinfo.getId()).build()));
						for (RecycleGoodsEntity item : huishouwupinlist) {
					%>
				<div class="col-sm-6">
					<div class="grid-wrapper">
						<div class="grid-content">
							<article class="content-item">
						<div class="entry-media">
							<div class="post-ribbon">
								<i class="fa fa-star"></i>
							</div>
							<div class="post-title">
								<h2>
									<a href="#"><%=item.getName()%></a>
								</h2>
								
							</div>
							<div class="bubble-line"></div>
							<div class="post-content">
								<div class="container gallery">
									<div class="row">
										<div class="col-xs-12 photos ">
											<a class="photos"><img src="<%=item.getImg()%>"
												alt="not image"></a>
										</div>
											</div>
								</div>
								<p><%=item.getInfo()%></p>
							</div>
							<div class="bubble-line"></div>
							<div class="post-footer">
										<div class="row">
											<div class="col-sm-6">
												<a href="javascript:;" class="button"><%=item.getStatus() %></a>
											</div>
											
										</div>
									</div>
								</div>
					</article>
					
							</div>
					</div>
				</div>
				<%
						}
					%>
			</div>
		</div>
	</section>
	<footer id="footer">
		<div class="footer-slide">
			<div class="swiper-container">
				<div class="swiper-wrapper">
					<div
						class="swiper-slide fslide col-xs-6 col-sm-4 col-md-3 col-lg-2">
						<a href="#" class="thumbnails"><img
							src="/images/footer/photos2.jpg" alt="Image"></a>
					</div>
					<div
						class="swiper-slide fslide col-xs-6 col-sm-4 col-md-3 col-lg-2">
						<a href="#" class="thumbnails"><img
							src="/images/footer/photos1.jpg" alt="Image"></a>
					</div>
					<div
						class="swiper-slide fslide col-xs-6 col-sm-4 col-md-3 col-lg-2">
						<a href="#" class="thumbnails"><img
							src="/images/footer/01-footer.jpg" alt="Image"></a>
					</div>
					<div
						class="swiper-slide fslide col-xs-6 col-sm-4 col-md-3 col-lg-2">
						<a href="#" class="thumbnails"><img
							src="/images/footer/02-footert.jpg" alt="Image"></a>
					</div>
					<div
						class="swiper-slide fslide col-xs-6 col-sm-4 col-md-3 col-lg-2">
						<a href="#" class="thumbnails"><img
							src="/images/footer/photos4.jpg" alt="Image"></a>
					</div>
					<div
						class="swiper-slide fslide col-xs-6 col-sm-4 col-md-3 col-lg-2">
						<a href="#" class="thumbnails"><img
							src="/images/footer/photos5.jpg" alt="Image"></a>
					</div>
					<div
						class="swiper-slide fslide col-xs-6 col-sm-4 col-md-3 col-lg-2">
						<a href="#" class="thumbnails"><img
							src="/images/footer/photos7.jpg" alt="Image"></a>
					</div>
					<div
						class="swiper-slide fslide col-xs-6 col-sm-4 col-md-3 col-lg-2">
						<a href="#" class="thumbnails"><img
							src="/images/footer/photos6.jpg" alt="Image"></a>
					</div>
				</div>
				<div class="swiper-button-prev circle-arrow">
					<i class="fa fa-chevron-left"></i>
				</div>
				<div class="swiper-button-next circle-arrow">
					<i class="fa fa-chevron-right"></i>
				</div>
			</div>
		</div>
		<div class="sub-footer">
			<div class="container">
				<div class="row">
					<div class="col-sm-12">
						<div class="widget"></div>
						<div class="widget footer-cp-text">
							
						</div>
					</div>
				</div>
			</div>
		</div>
	</footer>
	<!-- Include jQuery and Scripts -->
	<script type="text/javascript" src="/js/jquery.min.js"></script>
	<script type="text/javascript"
		src="/vendors/bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="/vendors/jquery.waypoints.min.js"></script>
	<script type="text/javascript" src="/vendors/isotope.pkgd.min.js"></script>
	<!-- Swiper -->
	<script type="text/javascript" src="/vendors/swiper/js/swiper.min.js"></script>
	<!-- Magnific-popup -->
	<script type="text/javascript" src="/js/scripts.js"></script>
</body>
</html>
